package com.pt25.base.web;

/**
 * web请求会话上下文
 */
public class WebThreadLocal {
    public static final InheritableThreadLocal<WebSession> webThreadLocal = new InheritableThreadLocal<>();

    public static void set(WebSession webSession) {
        webThreadLocal.set(webSession);
    }

    public static void clean() {
        webThreadLocal.remove();
    }

    public static WebSession get() {
        return webThreadLocal.get();
    }
}
